package com.ruoyi.project.hcy.notice.service;

import com.ruoyi.project.hcy.notice.domain.NoticeSeeCount;
import com.ruoyi.project.hcy.notice.mapper.NoticeSeeCountMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NoticeSeeCountImpl implements INoticeSeeCountService {
    @Autowired
    private NoticeSeeCountMapper noticeSeeCountMapper;

    /**
     * 通过id查询
     * @param noticeId
     * @return
     */
    @Override
    public NoticeSeeCount selectNoticeSeeCountById(Integer noticeId) {
        return noticeSeeCountMapper.selectNoticeSeeCountById(noticeId);
    }

    /**
     * 添加
     * @param noticeSeeCount
     * @return
     */
    @Override
    public int insertNoticeSeeCount(NoticeSeeCount noticeSeeCount) {
        return noticeSeeCountMapper.insertNoticeSeeCount( noticeSeeCount);
    }

    /**
     * 修改
     * @param noticeSeeCount
     * @return
     */
    @Override
    public int updateNoticeSeeCount(NoticeSeeCount noticeSeeCount) {
        return noticeSeeCountMapper.updateNoticeSeeCount( noticeSeeCount);
    }

    @Override
    public List<NoticeSeeCount> selectNoticeSeeCountList(NoticeSeeCount noticeSeeCount) {
        return noticeSeeCountMapper.selectNoticeSeeCountList(noticeSeeCount);
    }
}
